﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HostpitalManage.GUI
{
    public partial class SuaBenhNhan : Form
    {
        DAO.ReceptionManagementConnection connect = new DAO.ReceptionManagementConnection();
        public SuaBenhNhan()
        {
            InitializeComponent();
        }

        private void SuaBenhNhan_Load(object sender, EventArgs e)
        {

        }

        public void suaBenhNhan(String name, DateTime ngaysinh, String diachi,int gioitinh, int sodienthoai, String nghenghiep)
        {
             gioitinh = 0;
            if (rdBoyBn.Checked)
            {
                gioitinh = 1;
            }
            if (rdGirlBn.Checked)
            {
                gioitinh = 0;
            }
            connect.suaBenhNhan(txtFullnameBn.Text,dtDateBN.Value,txtAddress.Text, gioitinh, Convert.ToInt32(txtPhone.Text),txtJob.Text,);
        }
    }
}
